<%@ include file="/en/jsp/static.jsp" %>

<%
  String NAME = (String) request.getAttribute("NAME");
  String LOCATION = (String) request.getAttribute("LOCATION");
  String DESCRIPTION = (String) request.getAttribute("DESCRIPTION");
  int ALLOWPEOPLE = Integer.parseInt((String)request.getAttribute("ALLOWPEOPLE"));
  int CAT = Integer.parseInt((String)request.getAttribute("CATEGORY"));
  linuxbox.resource.logic.BoxResourceCat cat = new linuxbox.resource.logic.BoxResourceCat();
  String CATEGORY = cat.getCategoryString(CAT);
  int ID = Integer.parseInt((String)request.getAttribute("ID"));
%>

<jsp:include page="/en/jsp/header.jsp" flush="true"/>


<FORM action="<%=BoxStatic.servletDir%>BoxResourceAction" method="POST" name="deleteForm">

<table width="100%" height=26 align=middle border=0 cellpadding=0 cellspacing=0 bgcolor="#f4f4f4" style="font-size:16px;color:#d05000">
  <tr>
    <td>
      &nbsp;<img src="<%=BoxStatic.imageDir%>itemball.jpg" width=14 height=15 border=0 align="absmiddle">
      <b><%=boxName%> - Resource View</b>
    </td>
    <td align=right>
      <a href="<%=BoxStatic.jspDir%>resource/BoxResource.jsp">
        Resource List
      </a>
    </td>
  </tr>
</table>

<hr width="100%" color=#E06000 align=left>

<input type="submit" value="Delete" name="SubmitConfirmedDelete">
<input type="submit" value="Cancel" name="SubmitCancel">
<input type="hidden" name="ID" value="<%=ID%>">

<h2>
The following resource and all its reservations will be deleted!!!</h2>
<table width="100%" border=0 cellpadding=0 cellspacing=0>
    <tr>
      <td><b>Name: </b><%=NAME%></td>
    </tr>
    <tr>
      <td>
    <b>Category: </b> <%=CATEGORY%>
      </td>
    </tr>
    <tr><td>
      <b>Description: </b><br>
      <textarea name=DESCRIPTION rows=5 cols=60><%=DESCRIPTION%></textarea><br>
    </td></tr>
    <tr>
      <td><b>Location: </b><%=LOCATION%></td>
    </tr>
    <tr>
      <td><b>Allow People: </b><%=ALLOWPEOPLE%></td>
    </tr>
</table>
<hr width="100%" color=#E06000 align=left>
</form>

<jsp:include page="/en/jsp/footer.jsp" flush="true"/>
